.class public Lcom/glympse/android/glympse/ViewHistory$TicketCell;
.super Ljava/lang/Object;
.source "ViewHistory.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewHistory;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "TicketCell"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;,
        Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerExpireDelete;,
        Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerModifyResend;,
        Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnExpireDelete;,
        Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;
    }
.end annotation


# instance fields
.field private m_fActive:Z

.field protected m_lNewExpireTime:J

.field private m_listRecipientCells:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;",
            ">;"
        }
    .end annotation
.end field

.field private m_nActiveTimerColor:I

.field private m_nExpiredColor:I

.field private m_oButtonAdd15Minutes:Landroid/widget/Button;

.field private m_oButtonExpireDelete:Landroid/widget/Button;

.field private m_oButtonModifyResend:Landroid/widget/Button;

.field private m_oLayoutDestination:Landroid/widget/LinearLayout;

.field private m_oLayoutMessage:Landroid/widget/LinearLayout;

.field private m_oLinearCell:Landroid/widget/LinearLayout;

.field private m_oTableRecipients:Landroid/widget/TableLayout;

.field private m_oTextDate:Landroid/widget/TextView;

.field private m_oTextDestination:Landroid/widget/TextView;

.field private m_oTextMessage:Landroid/widget/TextView;

.field private m_oTextTime:Landroid/widget/TextView;

.field private m_oTextViewLabel:Landroid/widget/TextView;

.field protected m_oTicket:Lcom/glympse/platform/common/Ticket;

.field final synthetic this$0:Lcom/glympse/android/glympse/ViewHistory;


# direct methods
.method private constructor <init>(Lcom/glympse/android/glympse/ViewHistory;Lcom/glympse/platform/common/Ticket;)V
    .locals 4
    .parameter
    .parameter "oTicket"

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x0

    .line 349
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->this$0:Lcom/glympse/android/glympse/ViewHistory;

    .line 344
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 323
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    .line 324
    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_lNewExpireTime:J

    .line 325
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    .line 326
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextTime:Landroid/widget/TextView;

    .line 327
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextDate:Landroid/widget/TextView;

    .line 328
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLayoutMessage:Landroid/widget/LinearLayout;

    .line 329
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextMessage:Landroid/widget/TextView;

    .line 330
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLayoutDestination:Landroid/widget/LinearLayout;

    .line 331
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextDestination:Landroid/widget/TextView;

    .line 332
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextViewLabel:Landroid/widget/TextView;

    .line 333
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTableRecipients:Landroid/widget/TableLayout;

    .line 334
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonAdd15Minutes:Landroid/widget/Button;

    .line 335
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonModifyResend:Landroid/widget/Button;

    .line 336
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonExpireDelete:Landroid/widget/Button;

    .line 337
    iput-boolean v3, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_fActive:Z

    .line 338
    iput v3, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_nActiveTimerColor:I

    .line 339
    iput v3, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_nExpiredColor:I

    .line 341
    iput-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_listRecipientCells:Ljava/util/ArrayList;

    .line 346
    iput-object p2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    .line 347
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/Glympse;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f080010

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result v0

    iput v0, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_nActiveTimerColor:I

    .line 348
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/Glympse;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f08000f

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result v0

    iput v0, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_nExpiredColor:I

    return-void
.end method

.method synthetic constructor <init>(Lcom/glympse/android/glympse/ViewHistory;Lcom/glympse/platform/common/Ticket;Lcom/glympse/android/glympse/ViewHistory$TicketCell;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 344
    invoke-direct {p0, p1, p2}, Lcom/glympse/android/glympse/ViewHistory$TicketCell;-><init>(Lcom/glympse/android/glympse/ViewHistory;Lcom/glympse/platform/common/Ticket;)V

    return-void
.end method

.method private CreateCell(Landroid/view/LayoutInflater;)Landroid/view/View;
    .locals 11
    .parameter "oLayoutInflater"

    .prologue
    const/4 v10, 0x0

    const v7, 0x7f0c005e

    const/16 v6, 0x8

    .line 354
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    if-nez v4, :cond_0

    .line 356
    const v4, 0x7f030013

    const/4 v5, 0x0

    invoke-virtual {p1, v4, v10, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    .line 358
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    const v5, 0x7f0c0059

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextTime:Landroid/widget/TextView;

    .line 359
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    const v5, 0x7f0c005c

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextDate:Landroid/widget/TextView;

    .line 360
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    const v5, 0x7f0c0048

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLayoutMessage:Landroid/widget/LinearLayout;

    .line 361
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    const v5, 0x7f0c0025

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextMessage:Landroid/widget/TextView;

    .line 362
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    const v5, 0x7f0c0049

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLayoutDestination:Landroid/widget/LinearLayout;

    .line 363
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    const v5, 0x7f0c004a

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextDestination:Landroid/widget/TextView;

    .line 364
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v7}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextViewLabel:Landroid/widget/TextView;

    .line 365
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    const v5, 0x7f0c004c

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TableLayout;

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTableRecipients:Landroid/widget/TableLayout;

    .line 367
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->this$0:Lcom/glympse/android/glympse/ViewHistory;

    invoke-static {v4}, Lcom/glympse/android/glympse/ViewHistory;->access$16(Lcom/glympse/android/glympse/ViewHistory;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 369
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    const v5, 0x7f0c005a

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/Button;

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonAdd15Minutes:Landroid/widget/Button;

    .line 370
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    const v5, 0x7f0c005b

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/Button;

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonModifyResend:Landroid/widget/Button;

    .line 371
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    const v5, 0x7f0c0061

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/Button;

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonExpireDelete:Landroid/widget/Button;

    .line 373
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonAdd15Minutes:Landroid/widget/Button;

    new-instance v5, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;

    invoke-direct {v5, p0}, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;-><init>(Lcom/glympse/android/glympse/ViewHistory$TicketCell;)V

    invoke-virtual {v4, v5}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 374
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonModifyResend:Landroid/widget/Button;

    new-instance v5, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerModifyResend;

    invoke-direct {v5, p0}, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerModifyResend;-><init>(Lcom/glympse/android/glympse/ViewHistory$TicketCell;)V

    invoke-virtual {v4, v5}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 375
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonExpireDelete:Landroid/widget/Button;

    new-instance v5, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerExpireDelete;

    invoke-direct {v5, p0}, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerExpireDelete;-><init>(Lcom/glympse/android/glympse/ViewHistory$TicketCell;)V

    invoke-virtual {v4, v5}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 383
    :goto_0
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->this$0:Lcom/glympse/android/glympse/ViewHistory;

    invoke-static {v5}, Lcom/glympse/android/glympse/ViewHistory;->access$18(Lcom/glympse/android/glympse/ViewHistory;)Lcom/glympse/android/glympse/ViewHistory$OnClickListenerCell;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 386
    invoke-static {}, Lcom/glympse/platform/common/CorrectedTime;->GetTime()J

    move-result-wide v0

    .line 387
    .local v0, lCurrentTime:J
    invoke-direct {p0, v0, v1}, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->Update(J)V

    .line 391
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-object v4, v4, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    invoke-virtual {v4}, Lcom/glympse/platform/GVector$Recipients;->isEmpty()Z

    move-result v4

    if-nez v4, :cond_3

    .line 394
    new-instance v4, Ljava/util/ArrayList;

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-object v5, v5, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    invoke-virtual {v5}, Lcom/glympse/platform/GVector$Recipients;->size()I

    move-result v5

    invoke-direct {v4, v5}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_listRecipientCells:Ljava/util/ArrayList;

    .line 397
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-object v4, v4, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    invoke-virtual {v4}, Lcom/glympse/platform/GVector$Recipients;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_1
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-nez v5, :cond_2

    .line 417
    .end local v0           #lCurrentTime:J
    :cond_0
    :goto_2
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    return-object v4

    .line 379
    :cond_1
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    const v5, 0x7f0c004e

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    invoke-static {v4, v6}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    goto :goto_0

    .line 397
    .restart local v0       #lCurrentTime:J
    :cond_2
    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/glympse/platform/common/Recipient;

    .line 399
    .local v3, oRecipientCur:Lcom/glympse/platform/common/Recipient;
    new-instance v2, Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;

    invoke-direct {v2, p0, v3, v10}, Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;-><init>(Lcom/glympse/android/glympse/ViewHistory$TicketCell;Lcom/glympse/platform/common/Recipient;Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;)V

    .line 401
    .local v2, oRecipientCell:Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;
    iget-object v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_listRecipientCells:Ljava/util/ArrayList;

    invoke-virtual {v5, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 403
    iget-object v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTableRecipients:Landroid/widget/TableLayout;

    invoke-static {v2, p1, v0, v1}, Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;->access$1(Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;Landroid/view/LayoutInflater;J)Landroid/view/View;

    move-result-object v6

    .line 404
    new-instance v7, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v8, -0x1

    const/4 v9, -0x2

    invoke-direct {v7, v8, v9}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 403
    invoke-virtual {v5, v6, v7}, Landroid/widget/TableLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_1

    .line 411
    .end local v2           #oRecipientCell:Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;
    .end local v3           #oRecipientCur:Lcom/glympse/platform/common/Recipient;
    :cond_3
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    const v5, 0x7f0c005d

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    invoke-static {v4, v6}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 412
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v7}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    invoke-static {v4, v6}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 413
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTableRecipients:Landroid/widget/TableLayout;

    invoke-static {v4, v6}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    goto :goto_2
.end method

.method private Update(J)V
    .locals 10
    .parameter "lCurrentTime"

    .prologue
    const/16 v9, 0x8

    const/4 v8, 0x0

    .line 423
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLinearCell:Landroid/widget/LinearLayout;

    if-eqz v4, :cond_1

    .line 428
    iget-wide v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_lNewExpireTime:J

    iget-object v6, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-wide v6, v6, Lcom/glympse/platform/common/Ticket;->m_lExpireTime:J

    cmp-long v4, v4, v6

    if-lez v4, :cond_2

    iget-wide v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_lNewExpireTime:J

    move-wide v1, v4

    .line 431
    .local v1, lExpireTime:J
    :goto_0
    const-wide/16 v4, 0x3e8

    add-long/2addr v4, p1

    cmp-long v4, v1, v4

    if-ltz v4, :cond_3

    const/4 v4, 0x1

    :goto_1
    iput-boolean v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_fActive:Z

    .line 434
    iget-boolean v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_fActive:Z

    if-eqz v4, :cond_4

    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-boolean v4, v4, Lcom/glympse/platform/common/Ticket;->m_fExpiring:Z

    if-nez v4, :cond_4

    .line 437
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextTime:Landroid/widget/TextView;

    iget v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_nActiveTimerColor:I

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setTextColor(I)V

    .line 438
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextTime:Landroid/widget/TextView;

    sub-long v5, v1, p1

    invoke-static {v5, v6}, Lcom/glympse/platform/common/Helpers;->DurationToStr(J)Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 441
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->this$0:Lcom/glympse/android/glympse/ViewHistory;

    invoke-static {v4}, Lcom/glympse/android/glympse/ViewHistory;->access$16(Lcom/glympse/android/glympse/ViewHistory;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 443
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonModifyResend:Landroid/widget/Button;

    const v5, 0x7f0a0062

    invoke-static {v4, v5}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;I)Z

    .line 444
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonExpireDelete:Landroid/widget/Button;

    const v5, 0x7f0a0063

    invoke-static {v4, v5}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;I)Z

    .line 471
    :cond_0
    :goto_2
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonAdd15Minutes:Landroid/widget/Button;

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->this$0:Lcom/glympse/android/glympse/ViewHistory;

    invoke-static {v5}, Lcom/glympse/android/glympse/ViewHistory;->access$16(Lcom/glympse/android/glympse/ViewHistory;)Z

    move-result v5

    if-eqz v5, :cond_6

    iget-boolean v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_fActive:Z

    if-eqz v5, :cond_6

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-boolean v5, v5, Lcom/glympse/platform/common/Ticket;->m_fExpiring:Z

    if-nez v5, :cond_6

    move v5, v8

    :goto_3
    invoke-static {v4, v5}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 474
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextDate:Landroid/widget/TextView;

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->this$0:Lcom/glympse/android/glympse/ViewHistory;

    invoke-virtual {v5}, Lcom/glympse/android/glympse/ViewHistory;->getContext()Landroid/content/Context;

    move-result-object v5

    iget-object v6, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->this$0:Lcom/glympse/android/glympse/ViewHistory;

    invoke-static {v6}, Lcom/glympse/android/glympse/ViewHistory;->access$16(Lcom/glympse/android/glympse/ViewHistory;)Z

    move-result v6

    if-eqz v6, :cond_7

    iget-object v6, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-wide v6, v6, Lcom/glympse/platform/common/Ticket;->m_lCreatedTime:J

    :goto_4
    invoke-static {v5, v6, v7, p1, p2}, Lcom/glympse/platform/Platform;->FormatDate(Landroid/content/Context;JJ)Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 477
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-object v4, v4, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_8

    .line 479
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLayoutMessage:Landroid/widget/LinearLayout;

    invoke-static {v4, v9}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 488
    :goto_5
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-object v4, v4, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v4, v4, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_9

    .line 490
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLayoutDestination:Landroid/widget/LinearLayout;

    invoke-static {v4, v9}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 499
    :goto_6
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextViewLabel:Landroid/widget/TextView;

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->this$0:Lcom/glympse/android/glympse/ViewHistory;

    invoke-static {v5}, Lcom/glympse/android/glympse/ViewHistory;->access$17(Lcom/glympse/android/glympse/ViewHistory;)Z

    move-result v5

    if-eqz v5, :cond_a

    const v5, 0x7f0a0074

    :goto_7
    invoke-static {v4, v5}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;I)Z

    .line 502
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_listRecipientCells:Ljava/util/ArrayList;

    if-eqz v4, :cond_1

    .line 505
    const/4 v0, 0x0

    .line 506
    .local v0, fUpdate:Z
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_listRecipientCells:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_8
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-nez v5, :cond_b

    .line 512
    if-eqz v0, :cond_1

    .line 514
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTableRecipients:Landroid/widget/TableLayout;

    invoke-virtual {v4}, Landroid/widget/TableLayout;->requestLayout()V

    .line 518
    .end local v0           #fUpdate:Z
    .end local v1           #lExpireTime:J
    :cond_1
    return-void

    .line 428
    :cond_2
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-wide v4, v4, Lcom/glympse/platform/common/Ticket;->m_lExpireTime:J

    move-wide v1, v4

    goto/16 :goto_0

    .restart local v1       #lExpireTime:J
    :cond_3
    move v4, v8

    .line 431
    goto/16 :goto_1

    .line 452
    :cond_4
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextTime:Landroid/widget/TextView;

    iget v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_nExpiredColor:I

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setTextColor(I)V

    .line 453
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextTime:Landroid/widget/TextView;

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-boolean v5, v5, Lcom/glympse/platform/common/Ticket;->m_fExpiring:Z

    if-eqz v5, :cond_5

    const v5, 0x7f0a0073

    :goto_9
    invoke-static {v4, v5}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;I)Z

    .line 456
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->this$0:Lcom/glympse/android/glympse/ViewHistory;

    invoke-static {v4}, Lcom/glympse/android/glympse/ViewHistory;->access$16(Lcom/glympse/android/glympse/ViewHistory;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 458
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonModifyResend:Landroid/widget/Button;

    const v5, 0x7f0a0064

    invoke-static {v4, v5}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;I)Z

    .line 459
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oButtonExpireDelete:Landroid/widget/Button;

    const v5, 0x7f0a0065

    invoke-static {v4, v5}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;I)Z

    goto/16 :goto_2

    .line 453
    :cond_5
    const v5, 0x7f0a0072

    goto :goto_9

    :cond_6
    move v5, v9

    .line 471
    goto/16 :goto_3

    .line 474
    :cond_7
    iget-object v6, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-wide v6, v6, Lcom/glympse/platform/common/Ticket;->m_lStartTime:J

    goto/16 :goto_4

    .line 483
    :cond_8
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextMessage:Landroid/widget/TextView;

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-object v5, v5, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-static {v4, v5}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 484
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLayoutMessage:Landroid/widget/LinearLayout;

    invoke-static {v4, v8}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    goto/16 :goto_5

    .line 494
    :cond_9
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTextDestination:Landroid/widget/TextView;

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-object v5, v5, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v5, v5, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    invoke-static {v4, v5}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 495
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oLayoutDestination:Landroid/widget/LinearLayout;

    invoke-static {v4, v8}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    goto/16 :goto_6

    .line 499
    :cond_a
    const v5, 0x7f0a0075

    goto/16 :goto_7

    .line 506
    .restart local v0       #fUpdate:Z
    :cond_b
    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;

    .line 508
    .local v3, oRecipientCell:Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;
    invoke-static {v3, p1, p2}, Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;->access$2(Lcom/glympse/android/glympse/ViewHistory$TicketCell$RecipientCell;J)Z

    move-result v5

    or-int/2addr v0, v5

    goto/16 :goto_8
.end method

.method static synthetic access$0(Lcom/glympse/android/glympse/ViewHistory$TicketCell;J)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 421
    invoke-direct {p0, p1, p2}, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->Update(J)V

    return-void
.end method

.method static synthetic access$1(Lcom/glympse/android/glympse/ViewHistory$TicketCell;)Z
    .locals 1
    .parameter

    .prologue
    .line 337
    iget-boolean v0, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_fActive:Z

    return v0
.end method

.method static synthetic access$2(Lcom/glympse/android/glympse/ViewHistory$TicketCell;Landroid/view/LayoutInflater;)Landroid/view/View;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 352
    invoke-direct {p0, p1}, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->CreateCell(Landroid/view/LayoutInflater;)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$4(Lcom/glympse/android/glympse/ViewHistory$TicketCell;)Lcom/glympse/android/glympse/ViewHistory;
    .locals 1
    .parameter

    .prologue
    .line 321
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->this$0:Lcom/glympse/android/glympse/ViewHistory;

    return-object v0
.end method
